
var app = angular.module('app',['ngRoute']);

app.config(['$routeProvider',function($routeProvider){
	$routeProvider
	.when('/home',{
		templateUrl: 'home/home.html',
		controller: "homeCtrl"
	})
	.when('/market:text',{
		templateUrl: 'market/market.html',
		controller:"marketCtrl"
	})
	.when('/book',{
		templateUrl: 'book/book.html',
		controller:"bookCtrl"
	})
	.when('/seckill',{
		templateUrl: 'seckill/seckill.html',
		controller:"seckillCtrl"
	})
	.when('/cart',{
		templateUrl: 'cart/cart.html',
		controller:"cartCtrl"
	})
	.when('/personal',{
		templateUrl: 'personal/personal.html'
	})
	.when('/search',{
		templateUrl: 'search/search.html'
	})
	.when('/order',{
		templateUrl: 'order/order.html'
	})
	.otherwise('/home')
}])